package com.saunter.controller;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@ConditionalOnProperty(prefix = "thymeleaf",value = {"enable"},havingValue = "true")
public class ViewController {
    @RequestMapping("/user")
    public String userHtml() {
        return "user";
    }
    @RequestMapping("/admin")
    public String adminHtml() {
        return "admin";
    }
}
